package ma.cdm.compteRenduVO;

import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.io.Serializable;
import java.util.List;

public class ComiteVO implements Externalizable, Serializable {

	private String comiteID;
	private String comiteLibelle;
	private String comiteDescription;
	private List<PersonneVO> personnes;
	
	public ComiteVO() {
		super();
	}

	public ComiteVO(String id, String libelle) {
		comiteID = id;
		comiteLibelle = libelle;
	}

	
	public ComiteVO(String comiteID, String comiteLibelle,
			String comiteDescription) {
		super();
		this.comiteID = comiteID;
		this.comiteLibelle = comiteLibelle;
		this.comiteDescription = comiteDescription;
	}
	

	public String getComiteDescription() {
		return comiteDescription;
	}

	public void setComiteDescription(String comiteDescription) {
		this.comiteDescription = comiteDescription;
	}

	public String getComiteID() {
		return comiteID;
	}

	public void setComiteID(String comiteID) {
		this.comiteID = comiteID;
	}

	public String getComiteLibelle() {
		return comiteLibelle;
	}

	public void setComiteLibelle(String comiteLibelle) {
		this.comiteLibelle = comiteLibelle;
	}	

	public List<PersonneVO> getPersonnes() {
		return personnes;
	}

	public void setPersonnes(List<PersonneVO> personnes) {
		this.personnes = personnes;
	}

	public void writeExternal(ObjectOutput output) throws IOException {
		  output.writeObject(comiteDescription);
		  output.writeObject(comiteID);
          output.writeObject(comiteLibelle);
          output.writeObject(personnes);
	}


	@SuppressWarnings("unchecked")
	public void readExternal(ObjectInput input) throws IOException,
			ClassNotFoundException {
		 comiteDescription=(String) input.readObject() ;
		 comiteID =(String) input.readObject() ;
         comiteLibelle =(String) input.readObject() ;
         personnes=( List<PersonneVO>) input.readObject() ;
	}

}
